import Vue from 'vue'
import VueRouter from 'vue-router'
// const Home = () => import('@/views/Home')
// const Transaction=()=>import('@/views/Transactions')
// const Block=()=>import('@/views/Block')
// const BlockInfo=()=>import('@/views/BlockInfo.vue')
// const TransactionInfo=()=>import('@/views/TransactionInfo.vue')
// const AddressTranInfo=()=>import('@/views/TransactionsAddress.vue')

import Home from '@/views/Home.vue'
import Transaction from '@/views/Transactions.vue'
import Block from '@/views/Block';
import BlockInfo from '@/views/BlockInfo.vue';
import TransactionInfo from '@/views/TransactionInfo.vue';
import AddressTranInfo from '@/views/TransactionsAddress.vue';


Vue.use(VueRouter)

const routes = [
 
{path:'/home',component: Home,},
{path:'/',redirect:"/home"},
{path:'/transaction',component:Transaction},
{path:'/block',component:Block},
{path:'/block/info/:blockId/:inputValue',name:'blockInfo',component:BlockInfo},
{path:'/transaction/info/:inputValue',name:'transactionInfo',component:TransactionInfo},
{path:'/transaction/address/info/:inputValue',name:'transactionInfoAddress',component:AddressTranInfo}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
